<T:ViewBase x:Class="WPFExcelReport.TXTXKON"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                     xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls" 
                     xmlns:Localization="clr-namespace:Localization;assembly=Localization"  
                    Background="White"  
                    Name="TV"
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*"></ColumnDefinition>
        </Grid.ColumnDefinitions> 
        <DataGrid  Grid.Row="1"  Grid.Column="0"
                   VerticalAlignment="Top" 
                   AutoGenerateColumns="False"
                   EnableRowVirtualization="False"
                   VerticalScrollBarVisibility="Auto"
                   HorizontalScrollBarVisibility="Auto"
                   HorizontalAlignment="Stretch"
                   HeadersVisibility="Column" 
                   ItemsSource="{Binding Source={StaticResource ResourceKey=vwMaster}}" 
                   IsSynchronizedWithCurrentItem="True" 
                   x:Name="dlgMaster"
                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                   >
            <DataGrid.Columns>
                <DataGridTextColumn Binding="{Binding Path=TXT010, Converter={StaticResource gb2312}}"  Header="{Binding Source={Localization:Translate Word=1799PVA}}" Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=TXT020, Converter={StaticResource gb2312}}"  Header="{Binding Source={Localization:Translate Word=P24}}" Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=TXT030,Converter={StaticResource gb2312}}"  Header="{Binding Source={Localization:Translate Word=JD-136C}}" Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=TXT040,Converter={StaticResource gb2312}}"  Header="{Binding Source={Localization:Translate Word=淀粉}}" Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=TXT050,Converter={StaticResource gb2312}}"  Header="{Binding Source={Localization:Translate Word=丙烯}}" Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=TXT060,Converter={StaticResource gb2312}}"  Header="{Binding Source={Localization:Translate Word=抗静电剂}}" Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=TXT070,Converter={StaticResource gb2312}}"  Header="{Binding Source={Localization:Translate Word=蜡片}}" Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=TXT080,Converter={StaticResource gb2312}}"  Header="{Binding Source={Localization:Translate Word=含固量}}" Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=TXT090,Converter={StaticResource gb2312}}"  Header="{Binding Source={Localization:Translate Word=回潮率%}}" Width="Auto" />
            </DataGrid.Columns>
        </DataGrid>
    </Grid>
</T:ViewBase>
